export const isNumber = /^\d*$/;

export const isInteger = /^-?[0-9]+$/;

export const isFloat = /^[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?$/;

export const isLetter = /^[A-Za-z]*$/;

export const isLowerLetter = /^[a-z]*$/;

export const isUpperLetter = /^[A-Z]*$/;

export const isChinese = /^[\u4e00-\u9fa5]*$/;

export const isEnglishAndChinseAndNumber = /^[\u4e00-\u9fa5A-Za-z0-9]*$/;

export const isEnglishAndNumber = /^[A-Za-z0-9]*$/;

export const isPhoneNumber = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;

// export const isEmail = /^(([^()\[\]\\,;:\s@"]+(\.[^()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

export const isUrl = /^(http|https):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/;
